package com.sunwayworld.basemodule.business.pjtask.resource;

import com.alibaba.fastjson.JSONObject;
import com.sunwayworld.framework.log.annotation.Log;
import com.sunwayworld.framework.log.annotation.LogType;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sunwayworld.basemodule.business.pjtask.bean.LimsPjTaskBean;
import com.sunwayworld.basemodule.business.pjtask.service.LimsPjTaskService;
import com.sunwayworld.framework.support.base.resource.GenericResource;

@RequestMapping("/secure/basemodule/business/pj-tasks")
public interface LimsPjTaskResource extends GenericResource<LimsPjTaskService, LimsPjTaskBean, Long> {

    @Log(value = "保存结果", type = LogType.CONTROLLER)
    @PostMapping(value = "/update/result")
    JSONObject updateResult(RestJsonWrapperBean wrapperBean);
}
